Skip to content

feat(pm): put the topic-and-area board builder in the repo - #36757

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-fsjwtx
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-fsjwtx

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Part of #36740 — this PR lands card items 1–3 (the script, the page template, the runbook). Item 4, the one skill line in the triage lane file, is governed text, so it follows as its own PR carrying the closing keyword once this one merges; keeping it out keeps this diff out of Tier H.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:专题看板的生成脚本、页面模板和刷新手册从分诊会话的临时目录搬进仓库。
  • 属于车队工具:分诊换人或换号后,新座位照手册就能继续每 3 小时刷新看板。
  • 只读 GitHub、不写任何东西;出错最多是看板某次数字不对,下次刷新即恢复,可直接撤回。
  • 无

What changes

  • scripts/pm/topic-board.mjs (new): a Node port of the reference build.py from the card. --repo=objectstack|cloud --out=DIR writes epics{,_cloud}.json and areas{,_cloud}.json; --self-test runs offline. Read-only: every read goes through gh-pages.mjs (gh api, the shared scripts/pm read path); a failed read exits 3 and writes nothing. The retired lanes output (and the seat roster that fed it) is not ported.
  • scripts/pm/topic-board/page.html (new): the card's page template, as attached on the card, unchanged (no path needed fixing).
  • scripts/pm/topic-board/README.md (new): the 3-hourly runbook — build both repos, upload the four JSON files one per call, repoint the four dataset docs with if_version, delete superseded blobs; artifact ownership across accounts; reading a stale row; no artifact URL in the repo.
  • package.json: the self-test is chained onto the existing check:pm-board-snapshot script, so CI runs it with no workflow edit.

Why

The board builder lived only in triage#1's session scratchpad and dies with it; the maintainer ordered it into the repo so any triage seat, on any account, can keep refreshing the board.

Tests

node scripts/pm/topic-board.mjs --self-test — 38 cases, all pass, offline. It pins: topic detection (pm:epic, [Epic …], [专题 …], 专题:, tracking with open subs; a closed-out tracking card and a pm:seat card are not topics); parent choice (direct holder beats a larger containing topic; a cycle keeps one link); rollup (a parent's numbers include its descendant topics' cards, topic cards never count as members, closed sub-issues count in total/closed); prose-linked "unlinked" members (#2000 and #200号 do not match #200); topic cards left out of the area table with topic_skipped; the 「(未定 area)」 row; the read path (pull requests dropped, request count, a failed sub-issues read fails the whole read).

A one-off mutation (direct-holder rule replaced by "any containing topic") turned three cases red, then was restored before the commit (the original line read back).

Acceptance notes

  • Pacing is at or below the reference's: one paginated open-issues list, one sub-issues read per topic, and one per sub-issue whose sub_issues_summary.total is above zero (or absent). The reference read every sub-issue's sub-issues unconditionally; the members found are the same.

  • Area rows: every area of the repo's list gets a row in list order, zero or not, so the page shows every area group; others follow by open count, then 「(未定 area)」. The reference emitted only areas with cards, sorted by count; the page sorts groups by its own order, so only zero groups are new. topic is 0 by construction (as in the reference) and kept for the page's shape.

  • Faithful to the reference, kept as is: a card detected as a topic by title alone (no pm:epic / tracking label) is not in the area table's skip list, so it counts there when it sits in no other topic.

  • Live-count check (done-when 1) is not measured here: this container's gh is limited to search. NOT MEASURED: live read, reason: no non-search gh api in this container. It is the triage seat's reading, on its next refresh, from a checkout of this branch:

    node scripts/pm/topic-board.mjs --repo=objectstack --out=DIR
    node scripts/pm/topic-board.mjs --repo=cloud --out=DIR

    Then compare DIR/epics.json, DIR/areas.json, DIR/epics_cloud.json and DIR/areas_cloud.json with the datasets of triage#1's last published refresh: per topic open/total/closed/unlinked, per area open/p1, and topic_skipped. They should match within the cards that changed between the two builds; the only expected structural difference is the new zero rows for areas with no open cards. The stdout summary line also prints the GET request count of each run.

Verification

Read first: buildBoard in scripts/pm/topic-board.mjs (the parent choice and the cycle guard), then readBoard (the read count and failure path).

Two-minute check: node scripts/pm/topic-board.mjs --self-test → topic-board self-test: all passed.

The page was rendered in Chromium from the script's own output on a fixture (stub dash/d3): no page errors, both tabs draw the area groups, the topic tree (child under parent) and the 「专题以外」 rows.

Local gates at b85141c (dispatch-gates --commands: 42 families)

node scripts/pm/dispatch-gates.mjs --ran → 42 derived famil(ies) accounted for — 38 run, 4 NOT-MEASURED. All 38 run exit 0, including pnpm check:pm-board-snapshot (now carrying this self-test), node scripts/check-self-test-wired.mjs and pnpm check:pm-dispatch-gates (fast tier 459 s, exit 0).

NOT MEASURED (exit 3, PREREQUISITE NOT MET — they read built dist/, and this diff touches no package): check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. CI builds and runs them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxba6Siz8egCv4AAnqtU

scripts/pm/topic-board.mjs ports the triage seat's board builder (read-only,
through gh-pages.mjs), with an offline --self-test chained onto
check:pm-board-snapshot; topic-board/page.html is the board page template and
topic-board/README.md the 3-hourly refresh runbook.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxba6Siz8egCv4AAnqtU
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 23, 2026
@github-actions github-actions Bot added size/l dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation labels Nov 23, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

专题和区域看板(objectstack、cloud 两个页签)的生成脚本,以前只存在巡查席的临时目录里,换人或会话结束就没法再刷新。现在放进仓库:scripts/pm/topic-board.mjs 加页面模板和使用说明,任何巡查席都能照着跑。只是内部工具,不影响产品。
要你做的:无。

席位核对 — ACCEPT (L1) · repo:objectstack#1 · head b85141cb · 2026-11-23T16:20Z

  • Shape: Part of #36740, items 1–3. Four files:

    • scripts/pm/topic-board.mjs (new; it reads through gh-pages.mjs)
    • scripts/pm/topic-board/page.html
    • scripts/pm/topic-board/README.md
    • package.json, where the self-test is chained onto check:pm-board-snapshot

    It carries skip-changeset: fleet tooling, nothing published. No governed path. Clause-②: no. Metadata-protocol: none.

  • Read:

    • The page draws every issue-derived string through textContent and createElement, never innerHTML, so a title cannot inject markup.
    • The script writes JSON with JSON.stringify.
    • The item 4 line (triage.md, Tier H) follows in PR 2 with Fixes #36740.
  • Evidence (thread): self-test 38/38. A mutation of the parent rule turns 3 cases red. The page renders in Chromium from the script's output with no page errors.

  • Not measured: the live count against triage#1's last refresh. The PR body gives the triage seat the two commands and what to compare.

  • Gates: 69 check-runs on b85141cb, all success or expected skip, 0 failed. 0 behind main (< 15).

  • Landing: ready + auto-merge now.
    No must-fix, no should-fix.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 16:20
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 5ae5311 Nov 23, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-fsjwtx branch November 23, 2026 16:48
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ectstack-ai#36765)

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8JpuMUc83TvQP7B2uT2pUz5)_

Fixes objectstack-ai#36740 — card item 4, the skill pointer. Items 1–3 (the script,
the page template, the runbook) landed in objectstack-ai#36757.

Clause-②: no
Metadata-protocol: none
Rule-change: yes
Ruling-ref: ruling record 7107018094 on objectstack-ai#36740 — the maintainer, in the
triage session, 2026-11-23: 「看板代码要放进仓库,立卡派发」; and on the seat's decision
card, 2026-11-23 15:34Z: 「接,按普通顺序派」. Neither quote names this skill
line; the link between the quotes and the card's item 4 (this line) is
the seat's reading of card objectstack-ai#36740, so the line itself waits for the
maintainer's approval of this PR.

## 维护者速读

- 用户无感:分诊座位的职责说明里加一行,写明每 3 小时照手册刷新专题看板。
- 属于车队工具:上一步已把看板脚本放进仓库,这一行让以后任何分诊座位都知道这是它的固定任务。
- 只改一行说明文字,不碰产品;写错了直接撤回这一行即可。
- 这是技能文本,需要 os-zhuang 批准后才能合并。

## What changes

- `.claude/skills/pm-dispatch/references/lanes/triage.md`: one new line
naming the board duty — every 3 h, on the UTC hours 0, 3, …, 21, rebuild
both repos' data and refresh the board following
`scripts/pm/topic-board/README.md`. Placed with the other per-round
duties, after the dropped-seat line.
- `scripts/pm/check-skill-line-ratchet.mjs`: the `lanes/triage.md`
ceiling rises 2526 → 2637, **+111 bytes**, the measured size of that one
line. The file sat exactly at its ceiling, so the line cannot be paid by
headroom. The raise cites ruling record **7107018094** (comment on
objectstack-ai#36740), in the PR body here and in the row's comment, as the ratchet
discipline requires.

## Why

The card's item 4: the runbook landed in objectstack-ai#36757, and the triage lane
file is what a new triage seat reads first, so the duty has to be named
there or a seat on another account would not know the board exists.

## Verification

Read first: the one added line in `lanes/triage.md`, then the CEILINGS
row for it.

Two-minute check: `pnpm check:pm-skill-ratchet` → the `lanes/triage.md`
line reads 2637 bytes, ceiling 2637.

<details><summary>Local gates at 4e64d5c (dispatch-gates --commands: 40
families)</summary>

`node scripts/pm/dispatch-gates.mjs --ran` → 40 accounted: 39 run, all
exit 0 — including `pnpm check:pm-skill-ratchet`, `pnpm
check:pm-skill-id-lint`, `pnpm check:skill-frame-sync`, `pnpm
check:pm-governed-merges`, `pnpm check:pm-record-recognisers` and `pnpm
check:pm-dispatch-gates` (fast tier 431 s, exit 0). 1 NOT MEASURED, exit
3 PREREQUISITE NOT MET: `check:doc-formula-expressions` (needs a built
`@objectstack/formula`; this diff touches no package). CI builds and
runs it.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01JQwxba6Siz8egCv4AAnqtU

<!-- signed: repo:objectstack#1 · os-warren ·
session_01JQwxba6Siz8egCv4AAnqtU -->

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants